<h1>该组件用于演示EventEmitter通信</h1>
<div>
    <p>{{num}}</p>
    <button (click)="add()" class="button">+1</button>
    <button (click)="indexChange(num)">点一下</button>
</div>
<app-child></app-child>